package cn.tedu.eguser1.pojp.dto;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;


@Data
public class UserAddParam {
    @NotNull
    @Pattern( regexp ="^[\\u4e00-\\u9fa5a-zA-Z0-9_]{6,12}$",message = "用户名格式错误")
    private String username;
    private String password;
    private String nickname;


}
